package com.sjg.sys.service;

import org.springframework.jms.JmsException;
import org.springframework.stereotype.Component;

import javax.jms.JMSException;
import javax.jms.TextMessage;

/**
 * Created by fuqingjian on 2017/5/1.
 */
@Component("sysJMSReceiver")
public class SysJMSReceiver {
    public void receive(TextMessage message) throws JmsException, JMSException {
        System.out.println(message.getStringProperty("phrCode"));
        System.out.println(message.getText());
    }
}
